package org.sy.lab.Java7并发编程实战.五ForkJoin框架.一创建ForkJoin线程池;

import java.util.ArrayList;
import java.util.List;

public class ProductListGenerator {
	public List<Product> generate(int size) {
		List<Product> ret = new ArrayList<Product>();
		for(int i=0; i<size; i++) {
			Product product = new Product();
			product.setName("Product " + i);
			product.setPrice(10);
			ret.add(product);
		}
		return ret;
	}
}
